import { Schema } from 'mongoose';
import { dbConfig } from '../../config/db';

const { tables } = dbConfig;
const { comment } = tables;

export const commentSchema = new Schema({
  // 用户名
  username: {
    type: String,
    default: ''
  },
  // 头像
  profile: {
    type: String,
    default: '',
  },
  // 视频id
  videoId: {
    type: String,
    default: '',
  },
  // 评论详情
  desc: {
    type: String,
    default: '',
  },
  // 创建时间
  createTime: {
    type: String,
    default: '',
  }
}, {
  collection: comment
})